package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class MmallCategory extends Model<MmallCategory> {

private static final long serialVersionUID = 1L;

    /**
     * 类别Id
     */
                    @TableId(value = "id", type = IdType.AUTO)
                private Integer id;
    /**
     * 父类别id当id=0时说明是根节点,一级类别
     */
        private Integer parentId;
    /**
     * 类别名称
     */
        private String name;
    /**
     * 类别状态1-正常,2-已废弃
     */
        private Boolean status;
    /**
     * 排序编号,同类展示顺序,数值相等则自然排序
     */
        private Integer sortOrder;
    /**
     * 创建时间
     */
        private Date createTime;
    /**
     * 更新时间
     */
        private Date updateTime;
        private String mainImage;


    public Integer getId() {
            return id;
            }

        public void setId(Integer id) {
            this.id = id;
            }

    public Integer getParentId() {
            return parentId;
            }

        public void setParentId(Integer parentId) {
            this.parentId = parentId;
            }

    public String getName() {
            return name;
            }

        public void setName(String name) {
            this.name = name;
            }

    public Boolean getStatus() {
            return status;
            }

        public void setStatus(Boolean status) {
            this.status = status;
            }

    public Integer getSortOrder() {
            return sortOrder;
            }

        public void setSortOrder(Integer sortOrder) {
            this.sortOrder = sortOrder;
            }

    public Date getCreateTime() {
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public Date getUpdateTime() {
            return updateTime;
            }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
            }

    public String getMainImage() {
            return mainImage;
            }

        public void setMainImage(String mainImage) {
            this.mainImage = mainImage;
            }

@Override
protected Serializable pkVal() {
            return this.id;
        }

@Override
public String toString() {
        return "MmallCategory{" +
                ", id=" + id +
                ", parentId=" + parentId +
                ", name=" + name +
                ", status=" + status +
                ", sortOrder=" + sortOrder +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", mainImage=" + mainImage +
        "}";
        }
        }
